<?php $this->beginContent('application.views.layouts.main'); ?>
<div  class="item" id="item1">
    <div class="sap-content">
        <?php echo $content; ?>

    </div>
</div>
<!-- content -->

<div  class="item" id="item3">
    <div class="sap-content1">
        <div id="sidebar">
            <?php
            $items = FotoC::getAllItem();
            echo '<ul>';
            foreach($items as $item) {
                echo "<li><a href=\"".$this->createUrl('category',array('c'=>$item->id_foto_cat))."\">".$item->name.'</a></li>';
            }
            echo '</ul>';
            ?>
        </div>
        <!-- sidebar -->
    </div>
</div>
<?php $this->endContent(); ?>